const MAP_KEY = '7a1c65079509eaf679fce012e9820a1d';
//  const BASE_URL = 'http://192.168.1.58:8099';

 const BASE_URL = 'http://zhuyou.mdmtrip.com';
// const BASE_URL = 'http://jiazheng.ngrok.xiaomiqiu.cn/';


export default {
    MAP_KEY,
    BASE_URL
}

export function fileDownLoad(url,name,suffix){
    let Url = `${BASE_URL}/export/downloadFile/`+url+"/"+name+"/"+suffix;
    try{
        let elemIF = document.createElement("iframe");
        elemIF.src = Url;
        elemIF.style.display = "none";
        document.body.appendChild(elemIF);
    }catch(e){
       this.$message.warning("下载文件失败!");
    }     
}

